﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebTemplate.DAL.Repositories;
using WebTemplate.DAL.Entities;
namespace WebTemplate.Web.News
{
    public partial class News : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            NewsRepository NewsRepository = new NewsRepository();
            NewsSearchCriteria NewsSearchCriteria = new NewsSearchCriteria();
          ListView1.DataSource = NewsRepository.Select(NewsSearchCriteria);
          ListView1.DataBind();
        }

        protected void ListView1_PagePropertiesChanged(object sender, EventArgs e)
        {
            ListView1.DataBind();
        }


    
    }
}